<#if nodeApprovalInfo.canApproval == true && nodeApprovalInfo.processTaskNode.nodeStatus == 1>
	<div class="openBox">
		<h3 class="mt20">审核意见<i class="jtIco"></i></h3>
     	<div class="action-ajax-load" data-url="<@url value='/wf/processNode/agreeInfo?referId=${nodeApprovalInfo.processTaskMain.referId}&processType=${nodeApprovalInfo.processTaskMain.processType}' />"><p class="onload">审批意见加载中。。。</p></div>
       	<#if nodeApprovalInfo.auditor.auditorType == 2>
       	<div class="openBox action-ajax-load" data-url="<@url value='${loadServiceUrl}?loanapplyNo=${nodeApprovalInfo.processTaskMain.referId}&wfType=${nodeApprovalInfo.processTaskMain.processType}&nodeCode=${nodeApprovalInfo.processTaskNode.nodeCode}&referId=${nodeApprovalInfo.processTaskMain.referId}'/>"></div>
		<div class="detaiTab detaiTab1 m10">
       		<form action="<@url value='/wf/processAction/approval'/>" class="action-ajax-form" method="POST">
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="b_t_e5">
                    <tbody>
                        <tr>
	                        <td align="right" class="bg" width="18%">加签意见:</td>
	                        <td><textarea cols="50" rows="3" name="auditNote"></textarea>	</td>
	                    </tr>
	                    <tr>
	                        <td class="bg"></td>
	                        <td>
	                        <tr>
	                            <td class="bg"></td>
	                            <td><input type="submit" value="提交" class="btn_auto_30 btn_blue"/></td>
	                        </tr>
	                        </td>
	                    </tr>
						<input type="hidden" name="actionId" value="5"/>
						<input type="hidden" name="adderId" value="${user.no}"/>
						<input type="hidden" name="adderName" value="${user.cname}"/>
						<input type="hidden" name="nodeAuditorId" value="${nodeApprovalInfo.auditor.nodeAuditorId}"/>
                    </tbody>
                </table>
                </form>
			</div>
       	<#else>
	   		<#if nodeApprovalInfo.processTaskNode.referUrl?? && nodeApprovalInfo.processTaskNode.referUrl != ''>
	    		<div class="action-ajax-load" data-url="<@url value='${nodeApprovalInfo.processTaskNode.referUrl}?referId=${nodeApprovalInfo.processTaskMain.referId}&nodeCode=${nodeApprovalInfo.processTaskNode.nodeCode}' />"></div>
	   		</#if>
	        <div class="detaiTab detaiTab1 m10">
			 <form id="jq_approval_form" action="" class="action-ajax-form action-ajax-form-confirm" method="POST" action-ajax-form-confirm-message="确定执行该操作?">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tbody>
						<tr>
							<td align="right" class="bg" width="18%">审核意见:</td>
							<td><textarea cols="50" rows="4" name="auditNote" placeholder=""></textarea>	</td>
							 <td rowspan="2" valign="top" style="border-left:1px solid #e1e1e1;"><!-- <#noescape>${nodeApprovalInfo.processNodeTemplate.notesTemplate}</#noescape> --></td>
						</tr>
						<tr>
							<td class="bg"></td>
							<td>
								<input type="submit" value="通 过" class="btn_auto_30 btn_blue" onclick="javascript:this.form.action='<@url value="/wf/processAction/approval?actionId=5"/>';$('#jq_approval_form').attr('action-ajax-form-confirm-message','确定通过该流程?');return checkInputLength();"/>
								<#if nodeApprovalInfo.processNodeTemplate.isTurnedDown == 1>
									<input type="submit" value="驳 回" class="btn_auto_30 btn_gray ml10" onclick="javascript:this.form.action='<@url value="/wf/processAction/approval?actionId=6"/>';$('#jq_approval_form').attr('action-ajax-form-confirm-message','确定驳回该流程?');return checkInputLength();"/>
								</#if>
							</td>
						</tr>
						<input type="hidden" name="nodeAuditorId" value="${nodeApprovalInfo.auditor.nodeAuditorId}"/>
					</tbody>
				</table>
			</form>
			</div>
			<div class="cktitle mb10 action-toggle-closest-class" data-toggle-closest-class="show-ck-info">
				<span class="ckIco"></span>打开加签、审核</div>
                <div class="ck-info">
				<#if nodeApprovalInfo.processNodeTemplate.isSign == 1>
				<div class="detaiTab detaiTab1 m10">
					<p class="red p10"> 加签:是指单据该我审批,但是我要征询另外同事的意见,所以加签给另外同事,审批权还是在我手上.我在得到被加签人的意见后决定是否要审批通过或者驳回.</p>
					<form action="<@url value='/wf/processAction/approval'/>" class="action-ajax-form" method="POST">
						<table width="100%" border="0" cellspacing="0" cellpadding="0" class="b_t_e5">
							<tbody>
								<tr>
									<td align="right" class="bg" width="18%">加签人: </td>
									<td><@autocomplete url="/loanrest/operator?name=" name="adderName" id="adderId" value="" hideIdName="adderId"/>
										<span class="red" style="font-size:12px;">(联想输入,选择有效</span>) * 若需加签的请在此输入新的审核人 (<span class="red"> 每次只能填写一人 )</span>
									</td>
								</tr>
								<#if nodeApprovalInfo.signTypeList?? && nodeApprovalInfo.signTypeList?size gt 1>
									<tr>
										<td align="right" class="bg" width="18%">加签类型: </td>
										<td>
											<#list nodeApprovalInfo.signTypeList as item>
												<input name="signType" value="${item.code}" type="checkbox">${item.name}
											</#list>
										</td>
									</tr>
								</#if>
								<tr>
									<td align="right" class="bg">加签意见:</td>
									<td><textarea cols="50" rows="3" name="auditNote"></textarea>
									</td>
									<div id="action_load_body_interval"></div>
									<input type="hidden" name="actionId" value="1"/>
									<input type="hidden" name="nodeAuditorId" value="${nodeApprovalInfo.auditor.nodeAuditorId}"/>
								</tr>
								<tr>
									<td class="bg"></td>
									<td><input type="submit" value="确定加签" class="btn_auto_30 btn_blue"/></td>
								</tr>
							</tbody>
						</table>
					</form>
				</div>
            </#if>
            <#if nodeApprovalInfo.processNodeTemplate.isChange == 1>
				<div class="detaiTab detaiTab1 m10">
					<p class="red p10">转交:是指单据该我审批,但是我觉得我无法处理该单据,所以转交给另外的同事处理.将审批权转移给另外同事.</p>
					<form action="<@url value='/wf/processAction/approval'/>" class="action-ajax-form" method="POST">
					<table width="100%" border="0" cellspacing="0" cellpadding="0" class="b_t_e5">
						<tbody>
							<tr>
								<td align="right" class="bg" width="18%">转交人: </td>
								<td>
									<@autocomplete url="/loanrest/operator?name=" name="adderName" id="adderId" value="" hideIdName="adderId" />
									<span class="red" style="font-size:12px;">(联想输入,选择有效</span>) * 若需转交的请在此输入新的审核人 (<span class="red"> 每次只能填写一人 )</span>
								</td>
							</tr>
							<tr>
								<td align="right" class="bg">转交意见:</td>
								<td><textarea cols="50" rows="3" name="auditNote"></textarea>	</td>
							</tr>
							<tr>
								<td class="bg"></td>
								<td><input type="submit" value="确定转交" class="btn_auto_30 btn_blue"/></td>
							</tr>
							<input type="hidden" name="actionId" value="2"/>
							<input type="hidden" name="nodeAuditorId" value="${nodeApprovalInfo.auditor.nodeAuditorId}"/>
						</tbody>
					</table>
					</form>
				</div>
			 </#if>
			 </div>
       	</#if>
     </div>
 </#if>
 <@js>
	function checkInputLength(){
		var notes =$.trim($("textarea[name='auditNote']").val());
		var len = 0;
	    for (var i=0; i<notes.length; i++) { 
		     var c = notes.charCodeAt(i); 
		     if ((c >= 0x0001 && c <= 0x007e) || (0xff60<=c && c<=0xff9f)) { 
		       len++; 
		     }else { 
		       len+=2; 
		     } 
	    } 
	    if(len>1000){
	    	$.actionDialog({message: "超过限制500汉字限制,请以word附件形式上传或者精简文字"});
	    	return false;
	    }
	    return true;
	}
</@js>
<@jsRender/>